<template>
  <div class="dialog" v-show="show">
    <div class="main">
      <!-- <button @click="$emit('close',false)">关闭</button> -->
      <button @click="$emit('update:show',false)">关闭</button>
    </div>
  </div>
</template>

<script>
export default {
  props:['show']
};
</script>

<style>
.dialog {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
}
.main {
  width: 100px;
  height: 100px;
  background-color: #fff;
}
</style>